﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using W7Toshil.Entity;

namespace W7Toshil.Services
{
    public interface ITransaction<T>
    {
        void Add(T entity);

        void Update(T Entity);

        void Delete(long id);

        IList<T> FetchByDate(DateTime date);

        IList<Expense> FetchAll();

        T Get(long id);


    }
}
